import { t } from '@/hooks/web/useI18n';
import { LAYOUT } from '@/router/constant';
import type { AppRouteModule } from '@/router/types';

const personal: AppRouteModule = {
  path: 'personal',
  name: 'Personal',
  component: LAYOUT,
  redirect: '/personal/index',
  meta: {
    orderNo: 15,
    icon: 'ion:key-outline',
    title: t('routes.index.personal.index'),
  },
  children: [
    {
      path: 'index',
      name: 'Main',
      component: () => import('@/views/personal/index.vue'),
      meta: {
        title: t('routes.index.personal.index'),
        hideMenu: true,
      }
    }
  ]
};

export default personal;
